//
//  GoodsListCell.swift
//  WangPu
//
//  Created by xiaozhi on 15/10/13.
//  Copyright (c) 2015年 zhixiao. All rights reserved.
//

import UIKit

class GoodsListCell: UITableViewCell {
    @IBOutlet var goodsImageView:XZImageView!
    @IBOutlet var nameLbl:UILabel!
    @IBOutlet var priceLbl:UILabel!
    @IBOutlet var otherInfoLbl:UILabel!
    @IBOutlet var niceLbl:UILabel!
    @IBOutlet var loveBtn:UIButton!
    @IBOutlet var line:UIView!
    @IBOutlet var heightContratint:NSLayoutConstraint!
    var indexPath:NSIndexPath?
    var btnHandle:((NSIndexPath?)->Void)?
    override func awakeFromNib() {
        super.awakeFromNib()
//        heightContratint.constant = onePix
        self.selectionStyle = UITableViewCellSelectionStyle.None
        priceLbl.textColor = commonRedColor
        otherInfoLbl.backgroundColor = commonRedColor
        otherInfoLbl.textColor = UIColor.whiteColor()
        otherInfoLbl.clipsToBounds = true
        otherInfoLbl.layer.cornerRadius = 3.0
        otherInfoLbl.text = "手机专享"
//        self.layoutIfNeeded()
        // Initialization code
    }
    @IBAction func deleteButtonClick(button:UIButton)->Void{
        btnHandle?(indexPath!)
    }
    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
